/* ================================================
   Pinnac DEFENCE v2 â€” shared.css
   Palette: Deep Slate Â· Warm Ivory Â· Steel Teal
   Fonts: Syne (display) + DM Sans (body)
================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
    /* Core palette â€” replaces harsh orange with steel teal */
    --ivory: #F8F5EF;
    --ivory-2: #EDE8DE;
    --ivory-3: #DDD5C6;
    --sand: #C8BAA2;
    --slate-900: #0C0B09;
    --slate-800: #181714;
    --slate-700: #242320;
    --slate-600: #3A3834;
    --slate-500: #5A574F;
    --slate-400: #88847A;
    /* Accent â€” steel teal (replaces orange) */
    --teal: #3D7A72;
    --teal-light: #5FA89E;
    --teal-pale: #C2DDD9;
    --teal-glow: rgba(61, 122, 114, 0.12);
    /* Semantic */
    --white: #FDFCF8;
    /* Layout */
    --nav-h: 68px;
    --max-w: 1240px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--slate-700);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4,
h5 {
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--slate-900);
}

h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

em {
    font-style: normal;
    color: var(--teal);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- SECTION TAG ---- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}

.tag::before {
    content: '';
    width: 22px;
    height: 1.5px;
    background: var(--teal);
    flex-shrink: 0;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: all 0.22s ease;
    cursor: pointer;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-dark {
    background: var(--slate-900);
    color: var(--ivory-2);
    border: 1.5px solid var(--slate-900);
}

.btn-dark:hover {
    background: var(--slate-700);
    border-color: var(--slate-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12, 11, 9, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--slate-700);
    border: 1.5px solid var(--ivory-3);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-1px);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
    border: 1.5px solid var(--teal);
}

.btn-teal:hover {
    background: #2f6059;
    border-color: #2f6059;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(61, 122, 114, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--slate-600);
    border: none;
    padding: 13px 0;
}

.btn-ghost svg {
    transition: transform 0.2s;
}

.btn-ghost:hover {
    color: var(--teal);
}

.btn-ghost:hover svg {
    transform: translateX(4px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* ================================================
   NAVIGATION â€” transparent â†’ frosted on scroll
================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-h);
    transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s;
    background: transparent;
}

#navbar.nav-solid {
    background: rgba(248, 245, 239, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--ivory-2);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: 48px;
}

.logo-hex {
    width: 28px;
    height: 28px;
    position: relative;
    flex-shrink: 0;
}

.logo-hex svg {
    width: 100%;
    height: 100%;
}

.logo-wordmark {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--slate-900);
    line-height: 1;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--slate-400);
    display: block;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 0.855rem;
    font-weight: 500;
    color: var(--slate-700);
    border-radius: var(--r-sm);
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.nav-link:hover,
.nav-link.active-page {
    color: var(--slate-900);
    background: rgba(61, 122, 114, 0.07);
}

.nav-link.active-page {
    color: var(--teal);
}

.nav-chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.22s;
    opacity: 0.5;
    flex-shrink: 0;
    pointer-events: none;
}

.nav-item.open .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-item.open .nav-link {
    color: var(--teal);
    background: var(--teal-glow);
}

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--ivory-2);
    border-radius: var(--r-md);
    box-shadow: 0 16px 48px rgba(12, 11, 9, 0.1), 0 2px 8px rgba(12, 11, 9, 0.06);
    padding: 8px;
    min-width: 220px;
    z-index: 901;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.nav-item.open .nav-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dd-item {
    position: relative;
}

.dd-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 13px;
    font-size: 0.855rem;
    color: var(--slate-600);
    border-radius: var(--r-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.dd-link:hover {
    background: var(--ivory);
    color: var(--slate-900);
}

.dd-chevron {
    width: 9px;
    height: 9px;
    opacity: 0.45;
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.dd-item:hover .dd-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Sub-dropdown (level 3) */
.nav-sub {
    position: absolute;
    top: -6px;
    left: calc(100% + 12px);
    min-width: 220px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--ivory-2);
    border-radius: var(--r-md);
    box-shadow:
        0 20px 48px rgba(12, 11, 9, 0.10),
        0 4px 12px rgba(12, 11, 9, 0.06);
    z-index: 902;

    /* Smooth visibility control */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;

    pointer-events: none;
}

/* Add hover buffer to prevent accidental closing */
.nav-sub::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 14px;
    height: 100%;
    background: transparent;
}

/* Keep submenu open on parent hover */
.dd-item:hover > .nav-sub,
.dd-item:focus-within > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.dd-item:hover .nav-sub {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.sub-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    font-size: 0.84rem;
    color: var(--slate-600);
    border-radius: var(--r-sm);
    transition: background 0.15s, color 0.15s;
}

.sub-link:hover {
    background: var(--ivory);
    color: var(--teal);
}

.sub-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal-pale);
    flex-shrink: 0;
    transition: background 0.15s;
}

.sub-link:hover .sub-dot {
    background: var(--teal);
}

/* Divider in dropdown */
.dd-divider {
    height: 1px;
    background: var(--ivory-2);
    margin: 6px 8px;
}

/* Nav right */
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: var(--slate-900);
    color: var(--ivory-2);
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: background 0.2s, transform 0.18s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--teal);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 7px;
    border-radius: 8px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: var(--ivory);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--slate-800);
    border-radius: 2px;
    transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* ================================================
   HERO CATEGORY STRIP  (Bombas-style image row)
================================================ */
.cat-strip {
    display: flex;
    gap: 14px;
    padding: 0 40px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.cat-card {
    flex: 1;
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--ivory-2);
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(12, 11, 9, 0.14);
}

.cat-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Category visual backgrounds */
.cat-card:nth-child(1) .cat-bg {
    background: linear-gradient(135deg, #1c2b29 0%, #2c4a45 50%, #3D7A72 100%);
}

.cat-card:nth-child(2) .cat-bg {
    background: linear-gradient(135deg, #1a1e1c 0%, #243330 50%, #2d5550 100%);
}

.cat-card:nth-child(3) .cat-bg {
    background: linear-gradient(135deg, #242018 0%, #3a3222 50%, #5a4f38 100%);
}

.cat-card:nth-child(4) .cat-bg {
    background: linear-gradient(135deg, #14201e 0%, #1e3330 50%, #2d524d 100%);
}

/* Decorative SVG patterns inside each card */
.cat-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon svg {
    width: 72px;
    height: 72px;
    opacity: 0.18;
}

.cat-label {
    position: absolute;
    bottom: 18px;
    left: 18px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ivory-2);
    letter-spacing: 0.02em;
}

.cat-arrow {
    position: absolute;
    bottom: 20px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.cat-card:hover .cat-arrow {
    background: var(--teal);
    transform: translateX(3px);
}

.cat-arrow svg {
    width: 12px;
    height: 12px;
    color: white;
}

/* Grid texture overlay on cat cards */
.cat-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}


/* ================================================
   FOOTER  (shared)
================================================ */
.site-footer {
    background: var(--slate-900);
    padding: 72px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--slate-600);
    margin-bottom: 36px;
}

.footer-brand .nav-logo {
    margin-bottom: 18px;
}

.footer-brand .logo-wordmark {
    color: var(--ivory-2);
}

.footer-brand .logo-sub {
    color: var(--slate-500);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--slate-400);
    line-height: 1.75;
    max-width: 260px;
}

.footer-badge {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-light);
    border: 1px solid var(--slate-600);
    padding: 4px 10px;
    border-radius: 100px;
}

.footer-col strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivory-3);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--slate-400);
    padding: 4px 0;
    transition: color 0.18s;
}

.footer-col a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.footer-bottom a {
    color: var(--teal-light);
}


/* ================================================
   TOAST
================================================ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--slate-800);
    color: var(--ivory-2);
    font-size: 0.875rem;
    padding: 13px 28px;
    border-radius: var(--r-sm);
    border: 1px solid var(--teal);
    opacity: 0;
    transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ================================================
   UTILITIES
================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-teal {
    color: var(--teal);
}

.text-muted {
    color: var(--slate-400);
}

.section-gap {
    padding: 120px 0;
}

.section-gap-sm {
    padding: 80px 0;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page transition */
.page-fade {
    animation: pageFadeIn 0.4s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .cat-strip {
        padding: 0 20px;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .container {
        padding: 0 24px;
    }
}

@media (max-width: 640px) {
    .cat-strip {
        flex-direction: column;
    }

    .cat-card {
        aspect-ratio: 16/7;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 0 18px;
    }
}

/* Mobile nav open */
.nav-menu.mob-open {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--ivory-2);
    padding: 16px;
    box-shadow: 0 24px 48px rgba(12, 11, 9, 0.12);
    z-index: 899;
    gap: 2px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
}

.nav-menu.mob-open .nav-item {
    width: 100%;
}

.nav-menu.mob-open .nav-link {
    width: 100%;
    padding: 12px 14px;
}

.nav-menu.mob-open .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--ivory);
    margin: 4px 0 4px 16px;
    border-radius: var(--r-sm);
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.nav-menu.mob-open .nav-item.open .nav-dropdown {
    display: block;
}

.nav-menu.mob-open .nav-sub {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: var(--ivory-2);
    margin: 4px 0 4px 16px;
    border-radius: var(--r-sm);
}

.nav-menu.mob-open .dd-item:hover .nav-sub {
    display: none;
}

.nav-menu.mob-open .dd-item.sub-open .nav-sub {
    display: block;
}